import request from "@/utils/request";

// 查询员工业绩列表
export function listBizJinjianKpi(query) {
  return request({
    url: "/biz/bizJinjianKpi/list",
    method: "get",
    params: query,
  });
}

// 查询员工业绩详细
export function getBizJinjianKpi(id) {
  return request({
    url: "/biz/bizJinjianKpi/" + id,
    method: "get",
  });
}

// 新增员工业绩
export function addBizJinjianKpi(data) {
  return request({
    url: "/biz/bizJinjianKpi",
    method: "post",
    data: data,
  });
}

// 修改员工业绩
export function updateBizJinjianKpi(data) {
  return request({
    url: "/biz/bizJinjianKpi",
    method: "put",
    data: data,
  });
}

// 删除员工业绩
export function delBizJinjianKpi(id) {
  return request({
    url: "/biz/bizJinjianKpi/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizJinjianKpi/findMaxSort",
    method: "get",
  });
}
// 导出员工业绩
export function exportBizJinjianKpi(query) {
  return request({
    url: "/biz/bizJinjianKpi/export",
    method: "get",
    params: query,
  });
}

// 查询个人业绩列表
export function getSelfKpiStatisticVo(query) {
  return request({
    url: "/biz/bizJinjianKpi/getSelfKpiStatisticVo",
    method: "get",
    params: query,
  });
}
// 查询个人业绩汇总列表
export function getSumKpiStatisticVo(query) {
  return request({
    url: "/biz/bizJinjianKpi/getSumKpiStatisticVo",
    method: "get",
    params: query,
  });
}
